HAL IRDA APIs listing for migration

This section provides a full listing of the HAL1 APIs for migration. It includes the various constants, enumerations, structures, functions, and macros.

HAL IRDA constants

HAL1

series

HAL2

Refer to

HAL_IRDA_ERROR_BUSY

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_ERROR_DMA

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_ERROR_FE

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_RECEIVE_ERROR_FE

Refer to

HAL_IRDA_ERROR_INVALID_CALLBACK

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_ERROR_NE

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_RECEIVE_ERROR_NE

Refer to

HAL_IRDA_ERROR_NONE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_ERROR_ORE

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_RECEIVE_ERROR_ORE

Refer to

HAL_IRDA_ERROR_PE

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_RECEIVE_ERROR_PE

Refer to

HAL_IRDA_STATE_BUSY

u5, h5, c0, l4, g0, g4, h7,f4

Removed / New usage sequence

Refer to

HAL_IRDA_STATE_BUSY_RX

u5, h5, c0, l4, g0, g4, h7, f4

Removed / New usage sequence

Refer to

HAL_IRDA_STATE_BUSY_TX

u5, h5, c0, l4, g0, g4, h7, f4

Removed / New usage sequence

Refer to

HAL_IRDA_STATE_BUSY_TX_RX

u5, h5, c0, l4, g0, g4, h7 ,f4

Removed / New usage sequence

Refer to

HAL_IRDA_STATE_ERROR

u5, h5, c0, l4, g0, g4, h7 ,f4

Removed / New usage sequence

Refer to

HAL_IRDA_STATE_READY

u5, h5, c0, l4, g0, g4, h7 ,f4

Removed / New usage sequence

Refer to

HAL_IRDA_STATE_RESET

u5, h5, c0, l4, g0, g4, h7 ,f4

Removed / New usage sequence

Refer to

HAL_IRDA_STATE_TIMEOUT

u5, h5, c0, l4, g0, g4, h7 ,f4

Removed / New usage sequence

Refer to

IRDA_AUTOBAUD_REQUEST

u5, h5, c0, l4, g0, g4, h7

HAL_UART_REQUEST_AUTO_BAUD_RATE

Refer to

IRDA_CLEAR_FEF

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_CLEAR_IDLEF

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_CLEAR_NEF

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_CLEAR_OREF

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_CLEAR_PEF

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_CLEAR_TCF

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_CR_MASK

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_CR_POS

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_DMA_RX_DISABLE

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_DMA_RX_ENABLE

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_DMA_TX_DISABLE

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_DMA_TX_ENABLE

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_FLAG_ABRE

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_FLAG_ABRF

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_FLAG_BUSY

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_FLAG_FE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_FLAG_IDLE

f4

Removed / New usage sequence

Refer to

IRDA_FLAG_NE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_FLAG_ORE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_FLAG_PE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_FLAG_REACK

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_FLAG_RXNE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_FLAG_TC

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_FLAG_TEACK

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_FLAG_TXE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_ISR_MASK

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_ISR_POS

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_IT_CTS

f4

Removed / New usage sequence

Refer to

IRDA_IT_ERR

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_IT_FE

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_IT_IDLE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_IT_LBD

f4

Removed / New usage sequence

Refer to

IRDA_IT_MASK

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_IT_NE

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_IT_ORE

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_IT_PE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_IT_RXNE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_IT_TC

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequenceD

Refer to

IRDA_IT_TXE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_MODE_DISABLE

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_MODE_ENABLE

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_MODE_RX

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_DIRECTION_RX

Refer to

IRDA_MODE_TX

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_DIRECTION_TX

Refer to

IRDA_MODE_TX_RX

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_DIRECTION_TX_RX

Refer to

IRDA_ONE_BIT_SAMPLE_DISABLE

u5, h5, c0, l4, g0, g4, h7

HAL_UART_ONE_BIT_SAMPLE_DISABLE

Refer to

IRDA_ONE_BIT_SAMPLE_ENABLE

u5, h5, c0, l4, g0, g4, h7

HAL_UART_ONE_BIT_SAMPLE_ENABLE

Refer to

IRDA_PARITY_EVEN

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_PARITY_EVEN

Refer to

IRDA_PARITY_NONE

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_PARITY_NONE

Refer to

IRDA_PARITY_ODD

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_PARITY_ODD

Refer to

IRDA_POWERMODE_LOWPOWER

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_IRDA_POWER_MODE_LOW

Refer to

IRDA_POWERMODE_NORMAL

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_IRDA_POWER_MODE_NORMAL

Refer to

IRDA_PRESCALER_DIV1

u5, h5, c0, l4, g0, g4, h7

HAL_UART_PRESCALER_DIV1

Refer to

IRDA_PRESCALER_DIV10

u5, h5, c0, l4, g0, g4, h7

HAL_UART_PRESCALER_DIV10

Refer to

IRDA_PRESCALER_DIV12

u5, h5, c0, l4, g0, g4, h7

HAL_UART_PRESCALER_DIV12

Refer to

IRDA_PRESCALER_DIV128

u5, h5, c0, l4, g0, g4, h7

HAL_UART_PRESCALER_DIV128

Refer to

IRDA_PRESCALER_DIV16

u5, h5, c0, l4, g0, g4, h7

HAL_UART_PRESCALER_DIV16

Refer to

IRDA_PRESCALER_DIV2

u5, h5, c0, l4, g0, g4, h7

HAL_UART_PRESCALER_DIV2

Refer to

IRDA_PRESCALER_DIV256

u5, h5, c0, l4, g0, g4, h7

HAL_UART_PRESCALER_DIV256

Refer to

IRDA_PRESCALER_DIV32

u5, h5, c0, l4, g0, g4, h7

HAL_UART_PRESCALER_DIV32

Refer to

IRDA_PRESCALER_DIV4

u5, h5, c0, l4, g0, g4, h7

HAL_UART_PRESCALER_DIV4

Refer to

IRDA_PRESCALER_DIV6

u5, h5, c0, l4, g0, g4, h7

HAL_UART_PRESCALER_DIV6

Refer to

IRDA_PRESCALER_DIV64

u5, h5, c0, l4, g0, g4, h7

HAL_UART_PRESCALER_DIV64

Refer to

IRDA_PRESCALER_DIV8

u5, h5, c0, l4, g0, g4, h7

HAL_UART_PRESCALER_DIV8

Refer to

IRDA_STATE_DISABLE

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_STATE_ENABLE

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_RXDATA_FLUSH_REQUEST

u5, h5, c0, l4, g0, g4, h7

HAL_UART_REQUEST_RX_DATA_FLUSH

Refer to

IRDA_TXDATA_FLUSH_REQUEST

u5, h5, c0, l4, g0, g4, h7

HAL_UART_REQUEST_TX_DATA_FLUSH

Refer to

IRDA_WORDLENGTH_7B

u5, h5, c0, l4, g0, g4, h7

HAL_UART_WORD_LENGTH_7_BIT

Refer to

IRDA_WORDLENGTH_8B

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_WORD_LENGTH_8_BIT

Refer to

IRDA_WORDLENGTH_9B

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_WORD_LENGTH_9_BIT

Refer to


HAL IRDA enumerations

HAL1

series

HAL2

Refer to

HAL_IRDA_ABORT_COMPLETE_CB_ID

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_ABORT_RECEIVE_COMPLETE_CB_ID

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_ABORT_TRANSMIT_COMPLETE_CB_ID

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_CallbackIDTypeDef

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_ERROR_CB_ID

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_MSPDEINIT_CB_ID

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_MSPINIT_CB_ID

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_RX_COMPLETE_CB_ID

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_RX_HALFCOMPLETE_CB_ID

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_TX_COMPLETE_CB_ID

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_TX_HALFCOMPLETE_CB_ID

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_StateTypeDef

f4

hal_uart_state_t

Refer to

IRDA_CLOCKSOURCE_CSI

h5, h7

Removed / New usage sequence

Refer to

IRDA_CLOCKSOURCE_D2PCLK1

h7

Removed / New usage sequence

Refer to

IRDA_CLOCKSOURCE_D2PCLK2

h7

Removed / New usage sequence

Refer to

IRDA_CLOCKSOURCE_HSI

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_CLOCKSOURCE_LSE

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_CLOCKSOURCE_PCLK1

u5, h5, c0, l4, g0, g4

Removed / New usage sequence

Refer to

IRDA_CLOCKSOURCE_PCLK2

u5, h5, l4, g4

Removed / New usage sequence

Refer to

IRDA_CLOCKSOURCE_PLL2Q

h5, h7

Removed / New usage sequence

Refer to

IRDA_CLOCKSOURCE_PLL3Q

h5, h7

Removed / New usage sequence

Refer to

IRDA_CLOCKSOURCE_SYSCLK

u5, c0, l4, g0, g4

Removed / New usage sequence

Refer to

IRDA_CLOCKSOURCE_UNDEFINED

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

IRDA_ClockSourceTypeDef

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to


HAL IRDA macros

HAL1

series

HAL2

Refer to

__HAL_IRDA_CLEAR_FEFLAG

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_CLEAR_FLAG

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_CLEAR_IDLEFLAG

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_CLEAR_IT

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_CLEAR_NEFLAG

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_CLEAR_OREFLAG

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_CLEAR_PEFLAG

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_DISABLE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_DISABLE_IT

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_ENABLE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_ENABLE_IT

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_FLUSH_DRREGISTER

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_GET_FLAG

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_GET_IT

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_GET_IT_SOURCE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_ONE_BIT_SAMPLE_DISABLE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_ONE_BIT_SAMPLE_ENABLE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_RESET_HANDLE_STATE

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

__HAL_IRDA_SEND_REQ

u5, h5, c0, l4, g0, g4, h7

Removed / New usage sequence

Refer to


HAL IRDA structures

HAL1

series

HAL2

Refer to

IRDA_HandleTypeDef

u5, h5, c0, l4, f4, g0, g4, h7

hal_uart_handle_t

Refer to

IRDA_InitTypeDef

u5, h5, c0, l4, f4, g0, g4, h7

hal_uart_irda_config_t

Refer to

pIRDA_CallbackTypeDef

u5, h5, c0, l4, g4, g0, f4,h7

hal_uart_cb_t

Refer to


HAL IRDA functions

HAL1

series

HAL2

Refer to

HAL_IRDA_Init

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_Init

Refer to

HAL_IRDA_DeInit

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_DeInit

Refer to

HAL_IRDA_MspDeInit

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_MspInit

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_Receive

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_Receive

Refer to

HAL_IRDA_Receive_DMA

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_Receive_DMA

Refer to

HAL_IRDA_Receive_IT

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_Receive_IT

Refer to

HAL_IRDA_Transmit

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_Transmit

Refer to

HAL_IRDA_Transmit_DMA

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_Transmit_DMA

Refer to

HAL_IRDA_Transmit_IT

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_Transmit_IT

Refer to

HAL_IRDA_Abort

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_Abort

Refer to

HAL_IRDA_AbortReceive

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_AbortReceive

Refer to

HAL_IRDA_AbortReceive_IT

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_AbortReceive_IT

Refer to

HAL_IRDA_AbortTransmit

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_AbortTransmit

Refer to

HAL_IRDA_AbortTransmit_IT

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_AbortTransmit_IT

Refer to

HAL_IRDA_Abort_IT

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_Abort_IT

Refer to

HAL_IRDA_DMAPause

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_Pause_DMA

Refer to

HAL_IRDA_DMAResume

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_Resume_DMA

Refer to

HAL_IRDA_DMAStop

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_RxCpltCallback

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_RxCpltCallback

Refer to

HAL_IRDA_RxHalfCpltCallback

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_RxHalfCpltCallback

Refer to

HAL_IRDA_TxCpltCallback

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_TxCpltCallback

Refer to

HAL_IRDA_TxHalfCpltCallback

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_TxHalfCpltCallback

Refer to

HAL_IRDA_AbortCpltCallback

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_AbortCpltCallback

Refer to

HAL_IRDA_AbortReceiveCpltCallback

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_AbortReceiveCpltCallback

Refer to

HAL_IRDA_AbortTransmitCpltCallback

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_AbortTransmitCpltCallback

Refer to

HAL_IRDA_ErrorCallback

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_ErrorCallback

Refer to

HAL_IRDA_RegisterCallback

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_UnRegisterCallback

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to

HAL_IRDA_IRQHandler

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_IRQHandler

Refer to

HAL_IRDA_GetError

u5, h5, c0, l4, f4, g0, g4, h7

HAL_UART_GetLastErrorCodes

Refer to

HAL_IRDA_GetState

u5, h5, c0, l4, f4, g0, g4, h7

Removed / New usage sequence

Refer to


HAL IRDA legacy aliases (HAL1 to HAL1)

Note

This table provides a list of HAL1 to HAL1 legacy aliases defined in the stm32_hal_legacy.h HAL1 header file. To migrate the aliased HAL1 APIs, search for them in the HAL1 to HAL2 sections: HAL IRDA constants, HAL IRDA enumerations, HAL IRDA macros, HAL IRDA structures, HAL IRDA functions.

HAL1 legacy API alias

HAL1 API

IRDA_ONE_BIT_SAMPLE_DISABLED

IRDA_ONE_BIT_SAMPLE_DISABLE

IRDA_ONE_BIT_SAMPLE_ENABLED

IRDA_ONE_BIT_SAMPLE_ENABLE

__IRDA_DISABLE

__HAL_IRDA_DISABLE

__IRDA_ENABLE

__HAL_IRDA_ENABLE